package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 代理商模块-代理商账户表
 * </p>
 *
 * @author Small
 * @since 2020-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("amc_agent_account")
public class AgentAccount extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 代理商id
     */
    private Long agentId;

    /**
     * 总收益
     */
    private BigDecimal totalRevenue;

    /**
     * 提现冻结金额
     */
    private BigDecimal frozenAmount;

    /**
     * 提现可用金额
     */
    private BigDecimal avaAmount;

    /**
     * 返利总金额
     */
    private BigDecimal totalRebateRevenue;

    /**
     * 分红总金额
     */
    private BigDecimal totalBonusRevenue;

    /**
     * 总分润
     */
    private BigDecimal totalCommisionRevenue;

    /**
     * 可分红总额
     */
    private BigDecimal avaBonusRevenue;

    /**
     * 是否锁定 0被锁定，1可用
     */
    private Boolean isEnable;

    /**
     * 乐观锁
     */
    @Version
    private Integer revision;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updatedTime;


}
